-- GENERATED SPELL FOR [Omen] --


function spell0_15467(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15467', 677, 1)
end

function Sorts_15467(pUnit, Event)
local choix_sorts_15467 = math.random(0, 0)
if choix_sorts_15467 == 0 then
pUnit:RegisterEvent('spell0_15467', 1, 1)
end
end

function mob15467_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15467', math.random(1500, 3000), 1)
end

function mob15467_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15467_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15467_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15467, 1, 'mob15467_Action')
RegisterUnitEvent(15467, 2, 'mob15467_Leave')
RegisterUnitEvent(15467, 3, 'mob15467_Kill')
RegisterUnitEvent(15467, 4, 'mob15467_Die')
